home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Interactive CD Sampler / Microsoft Interactive CD Sampler.iso / DEMOS / PICTURE / PICTURI2.DIR / 00074.ls < prev    next >
Encoding:
Text File  |  1996-09-05  |  2.0 KB  |  63 lines

  1. on mouseDown
  2.   repeat while the stillDown = 1
  3.     set the locH of sprite 20 to the mouseH
  4.     set the locV of sprite 20 to the mouseV
  5.     if rollOver(12) and (the castNum of sprite 2 = the number of member "createbeg") then
  6.       set the castNum of sprite 12 to the number of member "1nxt03"
  7.     else
  8.       if rollOver(12) and (the castNum of sprite 2 = the number of member "create2") then
  9.         set the castNum of sprite 12 to the number of member "2nxt03"
  10.       else
  11.         if rollOver(12) and (the castNum of sprite 2 = the number of member "create3") then
  12.           set the castNum of sprite 12 to the number of member "3nxt03"
  13.         else
  14.           if rollOver(12) and (the castNum of sprite 2 = the number of member "createend") then
  15.             set the castNum of sprite 12 to the number of member "4nxt03"
  16.           else
  17.             if rollOver(12) = 0 then
  18.               set the castNum of sprite 12 to the number of member "capturenextbox"
  19.             end if
  20.           end if
  21.         end if
  22.       end if
  23.     end if
  24.     updateStage()
  25.   end repeat
  26. end
  27.  
  28. on mouseUp
  29.   if rollOver(12) and (the castNum of sprite 2 <> the number of member "createend") then
  30.     puppetSprite(4, 0)
  31.     puppetSprite(5, 0)
  32.     puppetSprite(6, 0)
  33.     puppetSprite(7, 0)
  34.     puppetSprite(8, 0)
  35.     puppetSprite(9, 0)
  36.     puppetSprite(11, 0)
  37.     puppetSprite(12, 0)
  38.     puppetSprite(20, 0)
  39.     set the castNum of sprite 12 to the number of member "capturenextbox"
  40.     updateStage()
  41.     puppetSound("sfx08")
  42.     updateStage()
  43.     go(the frame + 1)
  44.   else
  45.     if rollOver(12) and (the castNum of sprite 2 = the number of member "createend") then
  46.       puppetSprite(4, 0)
  47.       puppetSprite(5, 0)
  48.       puppetSprite(6, 0)
  49.       puppetSprite(7, 0)
  50.       puppetSprite(8, 0)
  51.       puppetSprite(9, 0)
  52.       puppetSprite(11, 0)
  53.       puppetSprite(12, 0)
  54.       puppetSprite(20, 0)
  55.       puppetSound("sfx02")
  56.       updateStage()
  57.       go("createend")
  58.       set the castNum of sprite 12 to the number of member "capturenextbox"
  59.       updateStage()
  60.     end if
  61.   end if
  62. end
  63.